package cn.ulc.store.dao.staff;

import cn.ulc.store.dao.BaseDao;
import cn.ulc.store.entity.staff.Staff;
import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.engine.PageQuery;

import java.util.List;

/*
* Staff
* gen by Jin mapper 2019-05-29
*/
@SqlResource("staff.staff")
public interface StaffDao extends BaseDao<Staff> {

    PageQuery findListPage(PageQuery pageQuery);

    PageQuery findRiderListPage(PageQuery pageQuery);

    List<Staff> findListByIdentity(String key, String identity,Long companyId);

    Staff findByLoginNameAndPasswordAndDeleted(String loginName,String password);

    Staff checkLoginName(String loginName, Long companyId);

    Staff checkPhone(String phone, Long companyId);

    Staff findByWxUserId(Long companyId,Long wxUserId);

    Staff findRiderByWxUserId(Long companyId,Long wxUserId,String identity);
}
